<template>
	<view class="container">
		<view class="" style="width: 100%;background-color: #fff;">
			<image style="width: 100%;" :src="info.jsonViewData.cover" mode="widthFix"></image>
		</view>
		<view class="" style="background-color: #fff;padding: 30rpx 20rpx;margin: 20rpx 0;">
			{{info.jsonViewData.name}}
		</view>
		<view class="detail-desc">
			<view class="d-header">
				<text>图文详情</text>
			</view>
			<!-- <rich-text  :nodes="goodsInfo.goodsDetailsJson"></rich-text> -->
			<uv-parse :content="info.jsonViewData.content"></uv-parse>
		</view>
		<view class="" style="position: fixed;bottom: 0;left: 0;right: 0;display: flex;justify-content: center;align-items: center;height: 120rpx;background-color: #fff;">
			<view class="" style="width: 600rpx;height: 80rpx;background-color: #F54319;border-radius: 40rpx;text-align: center;line-height: 80rpx;color: #fff;" @click="goPath()">
				查看领养门店
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data() {
			return {
			
				info:{},
				cateName:'',
				
			};
		},
		onLoad(options) {
			this.info=JSON.parse(decodeURIComponent(options.info))
			console.log(options.cateName);
			this.cateName=options.cateName
		},
		onShow() {
			
		},
		methods:{
			goPath(){
					uni.navigateTo({
						url:`/pages/index/busList?id=2&name=${encodeURIComponent(JSON.stringify(this.info))}&cateName=${this.cateName}`
					})
			},
			
		},		
		

	}
</script>

<style lang='scss'>
	page{
		background: #f8f8f8;
		padding-bottom: 160rpx;
	}
	.detail-desc{
		padding: 20rpx;
		background-color: #fff;
	}
	
</style>
